package com.osgix.common.pojo.temp;

import java.io.Serializable;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class CurrentUserInfo implements Serializable {

	private static final long serialVersionUID = 2367606160888995586L;

	private String id;

	//用户账号
	private String account = "";

	//用户密码 未加密
	private String pass = "";

	//用户密码 未加密
	private String ip = "";

	//登陆主机名
	private String computerName = "";

	//登陆时间
	private long loginDate = 0;

	private String timeZoneId;

	private String locale;

	public CurrentUserInfo(String account, String pass, String ip, String computerName, long loginDate) {
		this(account, pass, ip, computerName, TimeZone.getDefault().getID(), Locale.getDefault().toString(), new Date()
				.getTime());
	}

	public CurrentUserInfo(String account, String pass, String ip, String computerName, String timeZoneId, String locale) {
		this(account, pass, ip, computerName, timeZoneId, locale, new Date().getTime());
	}

	public CurrentUserInfo(String account, String pass, String ip, String computerName, String timeZoneId,
			String locale, long loginDate) {
		this.account = account;
		this.pass = pass;
		this.ip = ip;
		this.computerName = computerName;
		this.loginDate = loginDate;
		this.timeZoneId = timeZoneId;
		this.locale = locale;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getComputerName() {
		return computerName;
	}

	public void setComputerName(String computerName) {
		this.computerName = computerName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public long getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(long loginDate) {
		this.loginDate = loginDate;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getLocale() {
		return locale;
	}

	public void setLocale(String locale) {
		this.locale = locale;
	}

	public String getTimeZoneId() {
		return timeZoneId;
	}

	public void setTimeZoneId(String timeZoneId) {
		this.timeZoneId = timeZoneId;
	}
}
